package core.communication.message;

import java.util.ArrayList;

import core.communication.Direction;
import core.database.MessageType;

public class ConfigurationMessage extends Message {
	private static final long serialVersionUID = 1L;
	
	ArrayList<ConfigurationNode> configurationNodes = new ArrayList<ConfigurationNode>();

	public ConfigurationMessage() {
		super();
		setPriority(MessagePriority.HIGH);
		setMessageType(MessageType.Configuration);
	}
	
	public ConfigurationMessage(String destinationUri, ArrayList<ConfigurationNode> configurationNodes, Direction direction) {
		super();
		setPriority(MessagePriority.HIGH);
		setMessageType(MessageType.Configuration);
		setDestinationURI(destinationUri);
		this.configurationNodes.addAll(configurationNodes);
		setDirection(direction);
	}

	public ArrayList<ConfigurationNode> getConfigurationNodes() {
		return configurationNodes;
	}
}
